{template "header.html"}


<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {dr_form_hidden()}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title tabbable-line">
            <ul class="nav nav-tabs" style="float:left;">
                <li class="{if $page==0}active{/if}">
                    <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('配置属性')} </a>
                </li>

            </ul>
        </div>
        <div class="portlet-body">
            <div class="tab-content">

                <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
                    <div class="form-body">


                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('模块目录')}</label>
                            <div class="col-md-9">
                                <p class="form-control-static">{$module.dirname}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('功能开关')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[open]" value="1" {if $data['open']}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
                                <span class="help-block">{dr_lang('开启之后，此模块才具有电商购物功能')}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('库存统计')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[quantity]" value="1" {if $data['quantity']}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
                                <span class="help-block">{dr_lang('成单之后统计库存数据，库存不足时禁止下单')}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('物流功能')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[shipping]" value="1" {if $data['shipping']}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
                                <span class="help-block">{dr_lang('下订单时出现物流地址的填写')}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('交易流程')}</label>
                            <div class="col-md-9">

                                <label>
                                    <select class="form-control" name="data[ptype]">
                                        {loop $ptype $i $t}
                                        <option value="{$i}" {if $i == $data.ptype} selected{/if}>{$t}</option>
                                        {/loop}
                                    </select>
                                </label>


                                <span class="help-block">{dr_lang('可根据商品的实际情况选择一种交易模式')}</span>
                            </div>
                        </div>







                    </div>
                </div>



            </div>
        </div>
    </div>

    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}&page='+$('#dr_page').val(), 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存')}</button>
        </div>
    </div>
</form>
{template "footer.html"}